<me:UIAB50 x:Class="WPFExcelReport.TAB50RVREP"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization" 
                     xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls" 
                    xmlns:PR="clr-namespace:WPFExcelReport;assembly=TICC_PRULES"  
                     xmlns:YB="clr-namespace:WPFExcelReport;assembly=TGASTGA" 
                     xmlns:AP="clr-namespace:WPFExcelReport;assembly=TAPKOPF" 
                      xmlns:GS="clr-namespace:WPFExcelReport;assembly=TGSDAT" 
                      xmlns:GD="clr-namespace:WPFExcelReport;assembly=TGAAUF"  
                    Background="White"  
                    FontSize="16"
                    x:Name="TV"
                    Loaded="Window_Loaded"
     >
    <me:UIAB50.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
        <ucd:NOTBoolToVisibilityConverter x:Key="nbv"/>
    </me:UIAB50.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition   Height="Auto" />
            <RowDefinition   Height="Auto" />
            <RowDefinition   Height="1*" />
            <RowDefinition   Height="2*" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"></ColumnDefinition>
            <ColumnDefinition Width="1*"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <StackPanel Grid.Row="0"  Grid.Column="0">
            <WrapPanel>
                <Grid Margin="10,0,0,0" Grid.Column="2">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <TextBlock Grid.Column="0" Text="{Binding Source={Localization:Translate Word=基础生产单:}}" ></TextBlock>
                    <ex:TXT72  Grid.Column="1" MaxLength="2" PRE="  " Text="{Binding KRS,ElementName=TV}" Width="40" FontSize="18"/>
                    <ex:TXT72  Grid.Column="2" MaxLength="6" PRE="000000" Text="{Binding LFD,ElementName=TV}" Width="120" FontSize="18"/>
                    <ex:TXT72  Grid.Column="3" MaxLength="3" PRE="000" Text="{Binding POS,ElementName=TV}" Width="40" FontSize="18"/>
                </Grid>
                <Button Grid.Column="1" Height="20"  Width="Auto" Margin="0,0,0,0" Content="{Binding Source={Localization:Translate Word=查询}}"  Click="QueryCommand">

                </Button>
                <Button Grid.Column="1" Height="20"  Width="Auto" Margin="0,0,0,0" Content="{Binding Source={Localization:Translate Word=回修}}"  Click="btnRepaire_Click">
                </Button>
                <Grid Margin="0,0,0,0" Name="cQTY" Grid.Column="2">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <TextBlock Grid.Column="0" Text="{Binding Source={Localization:Translate Word=回修数量:}}" ></TextBlock>
                    <ex:NumericBox  Grid.Column="1" Text="{Binding SQTY, Converter={StaticResource d100},ElementName=TV}" MinWidth="60" FontSize="18"/>
                </Grid>
            </WrapPanel>
        </StackPanel>
        <PR:TRVRULES Grid.Row="1" Grid.Column="1" 
                      Visibility="Collapsed" 
                     Name="cRule"  ARTSTAGE="R"    
                     dwRule="{Binding dwRule,ElementName=TV}"
                     WH="{Binding WH,ElementName=TV}"
                    ORDERNUM="{Binding RULEKEY,ElementName=TV}"/>
        <GD:TGD713  Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2"
                     Name="cGD"
                    FTAUTOGA="False"
                    AUFTYP="V"
                    ARTSTAGE="R" 
                    IsGridShow="True"
                     IsEdit="{Binding IsEdit,ElementName=TV}"
                    dwRule="{Binding dwRule,ElementName=TV}" 
                    IsGD="{Binding IsGD,ElementName=TV}" 
                    POSTYP="{Binding POSTYP,ElementName=TV}" 
                    ORDERNUM="{Binding KEY,ElementName=TV}"
                    />
    </Grid>
</me:UIAB50>
